package com.atguigu.service;

import com.atguigu.pojo.Employee;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: liuaojun
 * @CreateTime: 2025-01-18
 * @Description:
 * @Version: 1.0
 */

public interface EmpService {
    /**
     * @Author:liuaojun
     * @Date:2025-01-18 16:03
     * @Description:增加
     */
    public void add(Employee employee);

    /**
     * @Author:liuaojun
     * @Date:2025-01-18 16:03
     * @Description:修改
     */
    public void update(Employee employee);

    /**
     * @Author:liuaojun
     * @Date:2025-01-18 16:04
     * @Description:删除
     */
    public void delete(Integer id);

    /**
     * @Author:liuaojun
     * @Date:2025-01-18 16:04
     * @Description:按ID查询
     */
    public Employee SelectEmpById(Integer id);

    /**
     * @Author:liuaojun
     * @Date:2025-01-18 16:05
     * @Description:查询所有
     */
    public List<Employee> SelectAllEmp();
}
